<include file="substation/public@header" />
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-row">

			<div class="layui-page-header">
				<div class="layui-card">
					<div class="layui-page-header-content">
						<div class="layui-card-body">
							<div class="layui-ui-page-header-title" >
								骑手等级列表
							</div>
						</div>
						<div class="layui-tab layui-tab-brief">
							<ul class="layui-tab-title">
								<li class="layui-this"><a>列表</a></li>
								<empty name="list">
								<li ><a href="{:url('riderlevel/add',['cityid'=>$cityid])}">添加</a></li>
								</empty>
							</ul>
						</div>
					</div>
				</div>
			</div>

			<div class="layui-page-content">

				<div class="layui-card">
					<div class="layui-card-body">
						<form method="post" class="js-ajax-form" action="{:url('riderlevel/listOrder')}" method="post">
							<table class="layui-table table-hover table-bordered table-list" id="menus-table" lay-even="" lay-size="lg">
								<thead>
									<tr>
										<th>ID</th>
										<th>名称</th>
									
										<th>跑腿类收入</th>
										
										<th align="center">{:lang('ACTIONS')}</th>
									</tr>
								</thead>
								<tbody>

									<foreach name="list" item="vo">
										<tr>
											<td>{$vo['id']}</td>
											<td>{$vo['name']}</td>
											
											<td>
												<if condition="$vo['config']['run_mode'] eq 1">
													每单固定 {$vo['config']['run_fix']}元
												</if>
												<if condition="$vo['config']['run_mode'] eq 2">
													配送费比例 {$vo['config']['run_rate']}%
												</if>
												<if condition="$vo['config']['run_mode'] eq 3">
													起始距离 {$vo['config']['distance_basic']}公里内,基础配送费
													{$vo['config']['distance_basic_money']}元
													<br>
													<br>
													超出后每增加1公里，增加{$vo['config']['distance_more_money']}元，
													最高 {$vo['config']['distance_max_money']}元
												</if>

											</td>
											
											<td>
												<a class="layui-bo layui-bo-small layui-bo-checked"  href="{:url('riderlevel/edit',['id'=>$vo['id']])}">{:lang('EDIT')}</a>
												<if condition="$vo['isdefault'] neq 1">
												<a class="layui-bo layui-bo-small layui-bo-close js-ajax-delete" href="{:url('riderlevel/del',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
												</if>
											</td>
										</tr>
									</foreach>

								</tbody>
							</table>
							<div class="pagination">{$page}</div>
						</form>
					</div>

				</div>
			</div>

		</div>

	</div>
	<include file="substation/public@script"/>
</body>
</html>